home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 99
/
(Vol 99) Jan 19 2010.iso
/
Games
/
bubble_burst.swf
/
scripts
/
frame_121
/
DoAction.as
Wrap
Text File
|
2010-01-19
|
5KB
|
147 lines
function gotoGameover()
{
gotoAndPlay(122);
}
function resetSpam()
{
if(_root.e > 1)
{
if(_root.f > 0)
{
g = _root.h;
while(g > 0)
{
set(§§constant(4),_root[§§constant(5) + _root[§§constant(6)][_root.e] + §§constant(7) + g]);
if(eval(§§constant(4))[§§constant(8)] > 1000 || eval(§§constant(4))[§§constant(9)] > 1000 || eval(§§constant(4))[§§constant(10)] > 1)
{
§§constant(11)(eval(§§constant(4)));
}
g--;
}
}
_root.f = 0;
}
else if(_root.f > 0)
{
g = _root.h;
while(g > 0)
{
set(§§constant(4),_root[§§constant(12) + g]);
if(eval(§§constant(4))[§§constant(8)] > 1000 || eval(§§constant(4))[§§constant(9)] > 1000 || eval(§§constant(4))[§§constant(10)] > 1)
{
§§constant(11)(eval(§§constant(4)));
}
g--;
}
_root.f = 0;
}
}
function setUpSpam(theClip)
{
theClip[§§constant(8)] = _root[§§constant(13)] + random(_root[§§constant(14)] - _root[§§constant(13)]);
theClip[§§constant(9)] = _root[§§constant(15)] + random(300);
theClip[§§constant(16)] = _root[§§constant(17)] + _root[§§constant(18)];
theClip[§§constant(19)] = true;
theClip[§§constant(20)](1);
}
function updateSpeed(theClip)
{
theClip[§§constant(21)] = 5 + random(5);
theClip[§§constant(22)] = 5 + random(5);
if(theClip[§§constant(8)] < _root[§§constant(23)] & random(2) == 1)
{
theClip[§§constant(24)] = 1;
}
else if(theClip[§§constant(8)] > _root[§§constant(23)] & random(2) == 1)
{
theClip[§§constant(24)] = -1;
}
else
{
theClip[§§constant(24)] = random(3) - 1;
}
if(theClip[§§constant(24)] == 0 & random(2) == 1)
{
theClip[§§constant(25)] = 1;
}
else if(theClip[§§constant(24)] == 0)
{
theClip[§§constant(25)] = -1;
}
else if(theClip[§§constant(9)] < _root[§§constant(26)] & random(2) == 1)
{
theClip[§§constant(25)] = 1;
}
else if(theClip[§§constant(9)] > _root[§§constant(26)] & random(2) == 1)
{
theClip[§§constant(25)] = -1;
}
else
{
theClip[§§constant(25)] = random(3) - 1;
}
}
function updateSpam(theClip)
{
set(§§constant(27),theClip[§§constant(8)] + theClip[§§constant(21)] * theClip[§§constant(24)]);
set(§§constant(28),theClip[§§constant(9)] + theClip[§§constant(22)] * theClip[§§constant(25)]);
if(eval(§§constant(27)) > _root[§§constant(14)] - _root[§§constant(13)])
{
set(§§constant(27),_root[§§constant(14)] - _root[§§constant(13)]);
theClip[§§constant(24)] *= -1;
}
else if(eval(§§constant(27)) < _root[§§constant(13)])
{
set(§§constant(27),_root[§§constant(13)]);
theClip[§§constant(24)] *= -1;
}
if(eval(§§constant(28)) > 330)
{
set(§§constant(28),330);
theClip[§§constant(25)] *= -1;
}
else if(eval(§§constant(28)) < _root[§§constant(15)])
{
set(§§constant(28),_root[§§constant(15)]);
theClip[§§constant(25)] *= -1;
}
theClip[§§constant(8)] = eval(§§constant(27));
theClip[§§constant(9)] = eval(§§constant(28));
}
§§push(true);
§§push(false);
§§push(false);
§§push(true);
while(true)
{
if(§§pop())
{
}
if(§§pop())
{
}
if(§§pop())
{
break;
}
§§push(true);
§§push(false);
}
eval(§§constant(29))[§§constant(30)] = 0.2;
eval(§§constant(29))[§§constant(17)] = getTimer();
eval(§§constant(29))[§§constant(18)] = 150;
eval(§§constant(29))[§§constant(13)] = 12;
eval(§§constant(29))[§§constant(15)] = 35;
eval(§§constant(29))[§§constant(14)] = 480;
eval(§§constant(29))[§§constant(23)] = 200;
eval(§§constant(29))[§§constant(26)] = 200;
eval(§§constant(29)).e = 1;
eval(§§constant(29)).f = 0;
eval(§§constant(29)).h = 6;
eval(§§constant(29))[§§constant(31)] = 5;
eval(§§constant(29))[§§constant(32)] = false;
eval(§§constant(29))[§§constant(33)] = false;
eval(§§constant(29))[§§constant(34)] = 15;
eval(§§constant(29))[§§constant(6)] = new §\§\§constant(40)§(0,§§constant(39),§§constant(38),§§constant(37),§§constant(36),§§constant(35));
stop();